/**
 * 
 */
package org.pfc.porlapatilla.DTO;

import java.util.Date;

/**
 * The message information to send for user message lists of Android app.
 * 
 * @author juan_antonio
 * 
 */
public class MessageDTO {

    /**
     * The message id.
     */
    private String messageId;

    /**
     * The message text.
     */
    private String text;

    /**
     * The message sender nick.
     */
    private String senderNick;

    /**
     * The message receiver nick.
     */
    private String receiverNick;

    /**
     * The message date.
     */
    private Date date;

    /**
     * If the message have been readed.
     */
    private boolean readed;

    /**
     * Creates a new messageDTO.
     */
    public MessageDTO() {
    }

    /**
     * Creates a new messageDTO.
     * 
     * @param messageId
     *            The new messageDTO id.
     * @param text
     *            The new messageDTO text.
     * @param sender
     *            The new messageDTO sender.
     * @param receiver
     *            The new messageDTO receiver.
     */
    public MessageDTO(String messageId, String text, String senderNick,
	    String receiverNick, Date date, boolean readed) {
	this.messageId = messageId;
	this.text = text;
	this.senderNick = senderNick;
	this.receiverNick = receiverNick;
	this.date = date;
	this.readed = readed;
    }

    /**
     * @return the id
     */
    public String getMessageId() {
	return messageId;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String messageId) {
	this.messageId = messageId;
    }

    /**
     * @return the text
     */
    public String getText() {
	return text;
    }

    /**
     * @param text
     *            the text to set
     */
    public void setText(String text) {
	this.text = text;
    }

    /**
     * @return the senderNick
     */
    public String getSenderNick() {
	return senderNick;
    }

    /**
     * @param senderNick
     *            the senderNick to set
     */
    public void setSenderNick(String senderNick) {
	this.senderNick = senderNick;
    }

    /**
     * @return the receiverNick
     */
    public String getReceiverNick() {
	return receiverNick;
    }

    /**
     * @param receiverNick
     *            the receiverNick to set
     */
    public void setReceiverNick(String receiverNick) {
	this.receiverNick = receiverNick;
    }

    /**
     * @return the date
     */
    public Date getDate() {
	return date;
    }

    /**
     * @param date
     *            the date to set
     */
    public void setDate(Date date) {
	this.date = date;
    }

    /**
     * @return the readed
     */
    public boolean isReaded() {
	return readed;
    }

    /**
     * @param readed
     *            the readed to set
     */
    public void setReaded(boolean readed) {
	this.readed = readed;
    }

    /**
     * @param messageId
     *            the messageId to set
     */
    public void setMessageId(String messageId) {
	this.messageId = messageId;
    }

}
